package com.teamwork.common.entity.module03;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;

import java.time.LocalDateTime;

@Data
@TableName("tb_module03_article")
public class Article {
           Long id ;
           String   title;
           String  cover;
           String content;
           Long  authorId;
           Integer likes;
           Integer comments;
           Integer shares;
           //审核状态 1审核通过，0未审核 3.审核不通过
           Integer status;
    @TableField(value = "createtime",fill = FieldFill.INSERT)
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    LocalDateTime createtime;
    @TableField(value = "updatetime",fill = FieldFill.INSERT_UPDATE)
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    LocalDateTime  updatetime;

}
